package org.csu.small.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("small_cart")
public class Cart {
    @TableId(type= IdType.AUTO)
    private Integer id;//id
    private Integer userId;//用户id
    private Integer productId;//商品id
    private Integer quantity;//数量
    private Integer checked;//是否选中
    private BigDecimal addPrice;
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//最后更新时间

}
